

// Screen.java
// Represents the screen of the ATM

public class Screen
{
	
	//  a method that helps creating the screen for a String
	public void printHelper(String str){
		System.out.print("|");
		System.out.printf(" ");
		System.out.printf("%-37s", str);
		System.out.printf(" ");
		System.out.printf("|\n");
		}// end method printHelper

	//  a method that helps creating the screen for a double
	public void printHelper1(double str){
		System.out.print("|");
		System.out.printf(" ");
		System.out.printf("%-37s", str);
		System.out.printf(" ");
		System.out.printf("|\n");
		}// end method printHelper1
	
	// 	makes the top and bottom(frame)
	public void displayFrame() {
		int i = 0;
		System.out.print("+");
		for(i=1;i<=39;i++){
			System.out.print("-");}
		System.out.println("+");
		}// end method displayFrame
	
	// makes one line with frame
	   public void displayBlank() {
				int i = 0;
				System.out.print("|");
				for(i=1;i<=39;i++){
					System.out.print(" ");}
				System.out.println("|");
	   } // end method displayBlank
	
	// display message without a carriage return
    public void displayMessage( String message ) {
      System.out.print( message );   
    } // end method displayMessage
	   
   // display a message for 3 Strings
	public void displayMessageF( String message, String string, String _string ) 
   {
	  System.out.printf( message, string, _string );   	
   } // end method displayMessageLine3
	   
   // display a message with a carriage return
   public void displayMessageLine( String message ) 
   {
      System.out.println( message );   
   } // end method displayMessageLine
   
   // display an error message
   public void displayMessageErr( String string ) 
   {
      System.err.println( string );   
   } // end method displayMessageErr
   

  
} // end class Screen
